from django.db import models


# Create your models here.

class Person(models.Model):
    first_name = models.CharField(max_length=200)
    last_name = models.CharField(max_length=200)
    region = models.ForeignKey('Region')
    #name = models.CharField(max_length=200, verbose_name="full name")
    

    @property
    def fullname(self):
        return u"%s %s" % (self.first_name, self.last_name)
    
    #fields=('first_name', 'last_name')

class Region(models.Model):
    name = models.CharField(max_length=200, verbose_name='Region name')



#class Person(models.Model):
#    first_name = models.CharField(max_length=200)
#    last_name = models.CharField(max_length=200)






